package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class receiveActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_receive);

        TextView receive = findViewById(R.id.tv_receive);

        String request_time = getIntent().getExtras().getString("request_time");
        String request_content = getIntent().getExtras().getString("request_content");

        receive.setText(String.format("收到的请求内容为:\n传递时间为:%s\n传递内容为:%s",request_time,request_content));

    }
}